/*
* pps_bom
*/
package com.pitop.bom.api;

import com.pitop.bom.entity.BomDetail;
import com.pitop.bom.vo.BomDetailVO;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * bom明细 api请求熔断器 熔断实现
 *
 * @author berton
 */
@Component
public class BomDetailFeignApiImpl implements BomDetailFeignApi {
    /**
     * 查询BomDetail一个详情信息
     *
     * @param id
     * @param code 编码
     * @return BomDetail
     */
    @Override
    public BomDetail load(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return new BomDetail();
    }

    /**
     * 查询BomDetail一个详情信息,(将查询关联数据)
     *
     * @param id
     * @param code 编码
     * @return BomDetail
     */
    @Override
    public BomDetail get(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return new BomDetail();
    }


    /**
     * 根据条件id查询BomDetail一个详情信息
     *
     * @param id
     * @return BomDetail
     */
    @Override
    public BomDetail loadById(@RequestParam("id") Long id) {
        return new BomDetail();
    }

    /**
     * 根据条件code查询BomDetail一个详情信息
     *
     * @param code 编码
     * @return BomDetail
     */
    @Override
    public BomDetail loadByCode(@RequestParam("code") String code) {
        return new BomDetail();
    }

    /**
     * 根据条件id查询BomDetail一个详情信息,(将查询关联数据)
     *
     * @param id
     * @return BomDetail
     */
    @Override
    public BomDetail getById(@RequestParam("id") Long id) {
        return new BomDetail();
    }

    /**
     * 根据条件code查询BomDetail一个详情信息,(将查询关联数据)
     *
     * @param code 编码
     * @return BomDetail
     */
    @Override
    public BomDetail getByCode(@RequestParam("code") String code) {
        return new BomDetail();
    }

    /**
     * 查询BomDetail信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<BomDetail> list(@RequestBody BomDetail bomDetail, int curPage, int pageSize) {
        return new ArrayList();
    }

    /**
     * 查询BomDetail信息集合
     *
     * @return 分页对象
     */
    @Override
    public List<BomDetail> listByPk(Long id, String code, int curPage, int pageSize) {
        return new ArrayList();
    }

    @Override
    public Integer count(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return 0;
    }

    @Override
    public Integer count(@RequestBody BomDetail bomDetail) {
        return 0;
    }

    @Override
    public BomDetail build(@RequestBody BomDetail bomDetail, @RequestParam("account") String account, @RequestParam("code") String code) {
        return null;
    }

    /**
     * 创建BomDetail
     *
     * @return BomDetail
     */
    @Override
    public BomDetail save(@RequestBody List<BomDetailVO> bomDetailVOs, @RequestParam("account") String account, @RequestParam("code") String code) {
        return new BomDetail();
    }

    /**
     * 修改BomDetail
     *
     * @return BomDetail
     */
    @Override
    public BomDetail modify(@RequestBody BomDetail bomDetail, @RequestParam("account") String account, @RequestParam("code") String code) {
        return new BomDetail();
    }

    @Override
    public BomDetail updateState(@RequestParam("code") String code, @RequestParam("state") String state) {
        return null;
    }

    /**
     * 删除BomDetail
     */
    @Override
    public void delete(@RequestParam("id") Long id, @RequestParam("code") String code) {
        return;
    }
}
